package com.haierp.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

public class InventoryListener implements Serializable{
	
//			  `id` bigint(19) NOT NULL AUTO_INCREMENT COMMENT '主键id',
//			  `item_id` bigint(19) DEFAULT NULL COMMENT '商品id',
//			  `sku_id` bigint(19) NOT NULL COMMENT 'skuid',
//			  `locked_inv` bigint(19) DEFAULT '0' COMMENT '锁定库存',
//			  `inventory` bigint(19) DEFAULT '0' COMMENT '实际库存',
//			  `virtual_inv` bigint(19) DEFAULT '0' COMMENT '虚拟库存',
//			  `gmt_create` datetime NOT NULL COMMENT '创建时间',
//			  `trans_inv` bigint(11) DEFAULT '0' COMMENT '在途库存',
//			  `locked_trans_inv` bigint(19) DEFAULT '0',
//	 			status
	
	/**
	 * 主键id
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 公司id
	 */
	@TableField(value = "company_id")
	private Integer companyId;
	/**
	 * 商品id
	 */
	@TableField(value = "item_id")
	private Long itemId;
	/**
	 * skuid
	 */
	@TableField(value = "sku_id")
	private Long skuId;
	
	/**
	 * 锁定库存
	 */
	@TableField(value = "locked_inv")
	private Integer lockedInv;
	
	
	/**
	 * 锁定在途库存量
	 */
	@TableField(value = "locked_trans_inv")
	private Integer lockedTransInv;
	/**
	 * 实际库存
	 */
	@TableField(value = "inventory")
	private Integer inventory;
	/**
	 * 虚拟库存
	 */
	@TableField(value = "virtual_inv")
	private Integer virtualInv;
	/**
	 * 在途库存
	 */
	@TableField(value = "trans_inv")
	private Integer transInv;
	/**
	 * 创建时间
	 */
	@TableField(value = "gmt_create")
	private Date gmtCreate;
	
	private Integer status;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public Long getSkuId() {
		return skuId;
	}

	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}

	public Integer getLockedInv() {
		return lockedInv;
	}

	public void setLockedInv(Integer lockedInv) {
		this.lockedInv = lockedInv;
	}

	public Integer getLockedTransInv() {
		return lockedTransInv;
	}

	public void setLockedTransInv(Integer lockedTransInv) {
		this.lockedTransInv = lockedTransInv;
	}

	public Integer getInventory() {
		return inventory;
	}

	public void setInventory(Integer inventory) {
		this.inventory = inventory;
	}

	public Integer getVirtualInv() {
		return virtualInv;
	}

	public void setVirtualInv(Integer virtualInv) {
		this.virtualInv = virtualInv;
	}

	public Integer getTransInv() {
		return transInv;
	}

	public void setTransInv(Integer transInv) {
		this.transInv = transInv;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}
